/*
 * Copyright 2020 The Kubernetes Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* from https://www.carbondesignsystem.com/data-visualization/color-palettes */

@mixin charts-red-blue-diverging {
  --color-latency-0: #1192e8; /* c50 */
  --color-latency-1: #33b1ff; /* c40 */
  --color-latency-2: #82cfff; /* c30 */
  --color-latency-3: #ffb3b8; /* r30 */
  --color-latency-4: #ff8389; /* r40 */
  --color-latency-5: #fa4d56; /* r50 */
}

@mixin charts-purple-teal-diverging-dark {
  --color-latency-5: #8a3ffc; /* p60 */
  --color-latency-4: #be95ff; /* p40 */
  --color-latency-3: #d4bbff; /* p30 */
  --color-latency-2: #3ddbd9; /* t30 */
  --color-latency-1: #08bdba; /* t40 */
  --color-latency-0: #007d79; /* t60 */
}

@mixin charts-purple-teal-diverging {
  --color-latency-5: #6929c4; /* p70 */
  --color-latency-4: #8a3ffc; /* p60 */
  --color-latency-3: #be95ff; /* p40 */
  --color-latency-2: #08bdba; /* t40 */
  --color-latency-1: #007d79; /* t60 */
  --color-latency-0: #005d5d; /* t70 */
}

/** citation: https://colorbrewer2.org/ */
@mixin charts-color-brewer-green-purple-diverging {
  --color-latency-0: #00441b;
  --color-latency-1: #1b7837;
  --color-latency-2: #a6dba0;
  --color-latency-3: #9970ab;
  --color-latency-4: #762a83;
  --color-latency-5: #40004b;
}

@mixin charts-light {
  /* @include charts-purple-teal-diverging; */
  /* @include charts-red-blue-diverging; */
  @include charts-color-brewer-green-purple-diverging;
}

@mixin charts-dark {
  @include charts-purple-teal-diverging-dark;
}
